package top.forgirl.domain.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ToString
@ApiModel("注册公司结果模型DO")
public class CompanyDo {

    @ApiModelProperty("公司名称")
    @NotBlank
    private String name;

    @NotBlank
    @ApiModelProperty("公司代号")
    private String cId;

    @ApiModelProperty("公司所在地")
    private String location;

    @ApiModelProperty("公司联系方式")
    private String contactNum;

    @ApiModelProperty("公司权限代码")
    @JsonIgnore
    private String relation;

    @ApiModelProperty(required = true, example = "1779251931", value = "账号")
    @NotBlank(message = "请输入创建用户的账号")
    private String principal;
    @ApiModelProperty(required = true, example = "123456789", value = "密码")
    private String credential;

}
